const bluebird2 = require("bluebird");
const redis2 = require('redis');
const redisConfig = require(`../config/redis-${process.env.NODE_ENV}.json`);
    redisConfig['return_buffers'] = true;
const client2 = redis2.createClient(redisConfig);
client2.on("error", function (err) {
    logger.log('error',"Redis-Error " + err);
});
bluebird2.promisifyAll(redis2);

module.exports = client2;